<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>
	<type-mapping>
		<sql-type jdbc-type="OTHER" hibernate-type="it.ap.sa.core.dao.util.JsonObjectUserType"></sql-type>
		<sql-type jdbc-type="DATE" hibernate-type="java.time.LocalDate"></sql-type>
		<sql-type jdbc-type="TIME" hibernate-type="java.time.LocalTime"></sql-type>
		<sql-type jdbc-type="TIMESTAMP" hibernate-type="java.time.LocalDateTime"></sql-type>
	</type-mapping>

	<!-- FISH -->
	<table schema="public" name="t_fish" class="it.ap.sa.acqua.dao.model.TFish">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_fish_family" class="it.ap.sa.acqua.dao.model.TFishFamily">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_fish_image" class="it.ap.sa.acqua.dao.model.TFishImage">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	
	<!-- PLANT -->
	<table schema="public" name="t_plant" class="it.ap.sa.acqua.dao.model.TPlant">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_plant_family" class="it.ap.sa.acqua.dao.model.TPlantFamily">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_plant_image" class="it.ap.sa.acqua.dao.model.TPlantImage">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	
	<!-- TANK -->
	<table schema="public" name="t_tank" class="it.ap.sa.acqua.dao.model.TTank">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_tank_alert" class="it.ap.sa.acqua.dao.model.TTankAlert">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_tank_type_alert" class="it.ap.sa.acqua.dao.model.TTankTypeAlert">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	
	<!-- ASSOCIAZIONI -->
	<table schema="public" name="t_ass_tank_fish" class="it.ap.sa.acqua.dao.model.TAssTankFish">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_ass_tank_user" class="it.ap.sa.acqua.dao.model.TAssTankUser">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_ass_tank_plant" class="it.ap.sa.acqua.dao.model.TAssTankPlant">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	
	<!-- USER -->
	<table schema="public" name="t_user" class="it.ap.sa.acqua.dao.model.TUser">
		<primary-key>
			<generator class="org.hibernate.id.SequenceGenerator"> <param name="sequence">sequence_id</param> </generator>
			<key-column name="id" />
		</primary-key>
	</table>
	<table schema="public" name="t_user_profile" class="it.ap.sa.acqua.dao.model.TUserProfile">
		<primary-key>
			<key-column name="id" />
		</primary-key>
	</table>
	
</hibernate-reverse-engineering>